home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-12-14 | 55.8 KB | 1,930 lines |
- Newsgroups: comp.sources.misc
- From: jef@well.sf.ca.us (Jef Poskanzer)
- Subject: v26i106: pbmplus - Extended Portable Bitmap Toolkit, Patch10dec91, Part01/05
- Message-ID: <csm-v26i106=pbmplus.193549@sparky.IMD.Sterling.COM>
- X-Md4-Signature: 4c628c5a906896654c8cf9de413c4a44
- Date: Sun, 15 Dec 1991 01:43:57 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: jef@well.sf.ca.us (Jef Poskanzer)
- Posting-number: Volume 26, Issue 106
- Archive-name: pbmplus/patch10dec91/part01
- Environment: UNIX
- Patch-To: pbmplus: Volume 23, Issue 36-59
-
- This update fixes some nasty bugs in pnmtotiff, adds a new set of
- Imakefiles from Rainer Klute, and adds four new programs from John
- Walker: pgmcrater, ppmforge, ppmtoacad, and sldtoppm. Plus various
- minor bugfixes.
-
- The update is in five parts. Unshar the parts in your pbmplus source
- directory. These shars contain new files as well as a file p121091.diffs.
- Apply the actual patches by:
-
- patch -p < p121091.diffs
-
- ---
- Jef
-
- Jef Poskanzer jef@well.sf.ca.us apple!well!jef
-
- - - - - - - - - - -
-
- #!/bin/sh
- # This is a shell archive (produced by shar 3.49)
- # To extract the files from this archive, save it to a file, remove
- # everything above the "!/bin/sh" line above, and type "sh file_name".
- #
- # made 12/13/1991 19:45 UTC by kent@sparky.IMD.Sterling.COM
- # Source directory /home/kent/mod/csm/queue/pbm/test
- #
- # existing files will NOT be overwritten unless -c is specified
- #
- # This is part 1 of a multipart archive
- # do not concatenate these parts, unpack them in order with /bin/sh
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 1568 -rw-rw-r-- Imakefile
- # 3569 -rw-rw-r-- Imakefile.tiff
- # 6893 -rw-rw-r-- Pbmplus.tmpl
- # 77113 -rw-rw-r-- p121091.diffs
- # 5156 -rw-rw-r-- pbm/Imakefile
- # 3534 -rw-rw-r-- pgm/Imakefile
- # 5160 -rw-rw-r-- pgm/pgmcrater.1
- # 10318 -rw-rw-r-- pgm/pgmcrater.c
- # 5158 -rw-rw-r-- pnm/Imakefile
- # 5811 -rw-rw-r-- ppm/Imakefile
- # 15385 -rw-rw-r-- ppm/ppmforge.1
- # 27513 -rw-rw-r-- ppm/ppmforge.c
- # 4290 -rw-rw-r-- ppm/autocad.h
- # 4541 -rw-rw-r-- ppm/ppmtoacad.1
- # 11612 -rw-rw-r-- ppm/ppmtoacad.c
- # 4785 -rw-rw-r-- ppm/sldtoppm.1
- # 17951 -rw-rw-r-- ppm/sldtoppm.c
- #
- rm -f Imakefile pbm/Imakefile pgm/Imakefile ppm/Imakefile pnm/Imakefile
- if test -r _shar_seq_.tmp; then
- echo 'Must unpack archives in sequence!'
- echo Please unpack part `cat _shar_seq_.tmp` next
- exit 1
- fi
- # ============= Imakefile ==============
- if test -f 'Imakefile' -a X"$1" != X"-c"; then
- echo 'x - skipping Imakefile (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- echo 'x - extracting Imakefile (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'Imakefile' &&
- /* Imakefile for pbmplus tools.
- X *
- X * Copyright (C) 1991 by Rainer Klute.
- X *
- X * Permission to use, copy, modify, and distribute this software and its
- X * documentation for any purpose and without fee is hereby granted, provided
- X * that the above copyright notice appear in all copies and that both that
- X * copyright notice and this permission notice appear in supporting
- X * documentation. This software is provided "as is" without express or
- X * implied warranty.
- X */
- X
- #include <Pbmplus.tmpl>
- X
- #define IHaveSubdirs
- #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
- X
- #if BuildLibTiff
- SUBDIRS = TiffDir PbmDir PgmDir PpmDir PnmDir
- #else
- SUBDIRS = PbmDir PgmDir PpmDir PnmDir
- #endif
- X
- MakeSubdirs($(SUBDIRS))
- DependSubdirs($(SUBDIRS))
- X
- World::
- X @echo ""
- X @echo "Building PBMPLUS"
- X @echo ""
- X @date
- X @echo ""
- X $(MAKE) $(MFLAGS) Makefiles
- X $(MAKE) $(MFLAGS) clean
- X $(MAKE) $(MFLAGS) includes
- X $(MAKE) $(MFLAGS) depend
- X $(MAKE) $(MFLAGS)
- X @echo ""
- X @date
- X @echo ""
- X @echo "Full build of PBMPLUS complete."
- X @echo ""
- X
- Everything::
- X @echo ""
- X @echo "Rebuilding PBMPLUS"
- X @echo ""
- X @date
- X @echo ""
- X $(MAKE) $(MFLAGS) Makefiles
- X $(MAKE) $(MFLAGS) includes
- X $(MAKE) $(MFLAGS) depend
- X $(MAKE) $(MFLAGS)
- X @echo ""
- X @date
- X @echo ""
- X @echo "Rebuild of PBMPLUS complete."
- X @echo ""
- X
- #if InstallIncludes
- InstallMultipleFlags(pbmplus.h,$(PBMPLUSDIR)$(PBMPLUSINCDIR),$(INSTINCFLAGS))
- #endif
- SHAR_EOF
- chmod 0664 Imakefile ||
- echo 'restore of Imakefile failed'
- Wc_c="`wc -c < 'Imakefile'`"
- test 1568 -eq "$Wc_c" ||
- echo 'Imakefile: original size 1568, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= Imakefile.tiff ==============
- if test -f 'Imakefile.tiff' -a X"$1" != X"-c"; then
- echo 'x - skipping Imakefile.tiff (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- echo 'x - extracting Imakefile.tiff (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'Imakefile.tiff' &&
- /* Imakefile for tiff library.
- X *
- X * Copyright (C) 1991 by Rainer Klute.
- X */
- X
- /*
- X * Tag Image File Format Library
- X *
- X * Copyright (c) 1988, 1989, 1990, 1991 Sam Leffler
- X * Copyright (c) 1991 Silicon Graphics, Inc.
- X *
- X * Permission to use, copy, modify, distribute, and sell this software and
- X * its documentation for any purpose is hereby granted without fee, provided
- X * that (i) the above copyright notices and this permission notice appear in
- X * all copies of the software and related documentation, and (ii) the names of
- X * Sam Leffler and Silicon Graphics may not be used in any advertising or
- X * publicity relating to the software without the specific, prior written
- X * permission of Stanford and Silicon Graphics.
- X *
- X * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
- X * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
- X * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
- X *
- X * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
- X * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
- X * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
- X * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
- X * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
- X * OF THIS SOFTWARE.
- X */
- X
- /*
- X * Library-wide configuration defines:
- X * SUBFILE_COMPAT include compat code for bad SubFileType tag
- X * JPEG_SUPPORT add support for C-Cube JPEG tags & JPEG algorithm
- X *
- X * Compression configuration defines:
- X * CCITT_SUPPORT add support for CCITT Group 3 & 4 algorithms
- X * PACKBITS_SUPPORT add support for Macintosh PackBits algorithm
- X * LZW_SUPPORT add support for LZW algorithm
- X * THUNDER_SUPPORT add support for ThunderScan 4-bit RLE algorithm
- X * NEXT_SUPPORT add support for NeXT 2-bit RLE algorithm
- X * JPEG_SUPPORT add support for C-Cube JPEG tags & JPEG algorithm
- X *
- X * Note that if you change the library-wide configuration, you'll
- X * need to manual force a full rebuild. Changing the configuration
- X * of which compression algorithms are included in the library is
- X * automatically handled (i.e. tif_compress.o has a dependency on
- X * the Makefile).
- X */
- X
- CONF_COMPRESSION=\
- X -DPACKBITS_SUPPORT \
- X -DLZW_SUPPORT \
- X -DCCITT_SUPPORT \
- X -DTHUNDER_SUPPORT \
- X -DNEXT_SUPPORT \
- X ${NULL}
- CONF_LIBRARY=\
- X -DUSE_VARARGS=1 \
- X -DUSE_PROTOTYPES=0 \
- X ${NULL}
- X
- X
- #define LibTiff libtiff.a
- #define DepLibTiff LibTiff
- #include <../Pbmplus.tmpl>
- X
- DEFINES = ${CONF_LIBRARY}
- X
- SRCS = tif_fax3.c tif_fax4.c tif_ccittrle.c tif_close.c tif_compat.c \
- X tif_compress.c tif_dir.c tif_dumpmode.c tif_error.c tif_jpeg.c \
- X tif_flush.c tif_lzw.c tif_open.c tif_packbits.c tif_print.c \
- X tif_read.c tif_swab.c tif_strip.c tif_thunder.c tif_tile.c \
- X tif_warning.c tif_write.c tif_next.c
- X
- OBJS= tif_fax3.o tif_fax4.o tif_ccittrle.o tif_close.o tif_compat.o \
- X tif_compress.o tif_dir.o tif_dumpmode.o tif_error.o tif_jpeg.o \
- X tif_flush.o tif_lzw.o tif_open.o tif_packbits.o tif_print.o tif_read.o \
- X tif_strip.o tif_swab.o tif_thunder.o tif_tile.o tif_warning.o \
- X tif_write.o tif_next.o
- X
- AllTarget($(LIBTIFF))
- X
- includes:: g3states.h
- X
- g3states.h: mkg3states.c t4.h
- X ${CC} -o mkg3states ${CFLAGS} mkg3states.c
- X ./mkg3states > g3states.h
- X
- clean::
- X $(RM) g3states.h mkg3states
- X
- DependTarget()
- X
- NormalLibraryObjectRule()
- NormalLibraryTarget(tiff,$(OBJS))
- SpecialObjectRule(tif_compress.o,,${CONF_COMPRESSION})
- X
- #if InstallLibraries
- InstallLibrary(tiff,$(PBMPLUSDIR)$(PBMPLUSLIBDIR))
- #endif
- SHAR_EOF
- chmod 0664 Imakefile.tiff ||
- echo 'restore of Imakefile.tiff failed'
- Wc_c="`wc -c < 'Imakefile.tiff'`"
- test 3569 -eq "$Wc_c" ||
- echo 'Imakefile.tiff: original size 3569, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= Pbmplus.tmpl ==============
- if test -f 'Pbmplus.tmpl' -a X"$1" != X"-c"; then
- echo 'x - skipping Pbmplus.tmpl (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- echo 'x - extracting Pbmplus.tmpl (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'Pbmplus.tmpl' &&
- /* Imake template and rules for PBMPLUS
- X *
- X * Copyright (C) 1991 Rainer Klute
- X *
- X * Permission to use, copy, modify, distribute, and sell this software and
- X * its documentation for any purpose is hereby granted without fee, provided
- X * that the above copyright notice appear in all copies and that both that
- X * copyright notice and this permission notice appear in supporting
- X * documentation, and that the copyright holder's name not be used in
- X * advertising or publicity pertaining to distribution of the software
- X * without specific, written prior permission. The copyright holder makes
- X * no representations about the suitability of this software for any
- X * purpose. It is provided "as is" without express or implied warranty.
- X */
- X
- /* CONFIGURE: PBMPLUS's support for TIFF files depends on the library from
- X * Sam Leffler's TIFF Software package - see the OTHER.SYSTEMS file for a
- X * full description and access information. To configure PBMPLUS to use the
- X * library: first, if necessary, fetch the TIFF Software, unpack it in a
- X * scratch directory somewhere, and move the libtiff subdirectory right here
- X * into the PBMPLUS top-level directory. Then move the file Imakefile.tiff
- X * to libtiff/Imakefile.
- X *
- X * Libtiff is pretty good about portability, but there are some machines
- X * it has problems on. If you run into problems, you may wish to contact
- X * Sam directly, at the address listed in the OTHER.SYSTEMS file.
- X *
- X * By the way, you must have at least version 2.4 of libtiff. Earlier
- X * versions will not work.
- X */
- #ifndef BuildLibTiff
- #define BuildLibTiff YES
- #endif
- X
- /* CONFIGURE: You may edit the symbol definitions below as you see fit,
- X * e.g. change the definition of "InstallLibraries" and "InstallIncludes"
- X * to "YES" if you want to have the libraries and include files installed.
- X */
- #ifndef InstallBinaries
- #define InstallBinaries YES
- #endif
- #ifndef InstallManuals
- #define InstallManuals YES
- #endif
- #ifndef InstallLibraries
- #define InstallLibraries NO
- #endif
- #ifndef InstallIncludes
- #define InstallIncludes NO
- #endif
- X
- /* CONFIGURE: Normally the Imakefiles build and install separate binaries for
- X * each program. However, on some systems (especially those without shared
- X * libraries) this can mean a lot of space. In this case you might try
- X * building a "merge" instead. The idea here is to link all the binaries
- X * together into one huge executable, with a tiny dispatch program as the
- X * main. Then the merged binary is installed with file-system links for
- X * each program it includes. The dispatch routine can tell which program
- X * to run by looking at argv[0]. On a Sun3 under SunOS 3.5 the space for
- X * executables went from 2.9 meg to .36 meg.
- X *
- X * Note that if you make a "merge", the executables don't get created
- X * until you do the install.
- X */
- #ifndef InstallMerged
- #define InstallMerged NO
- #endif
- X
- X
- /* CONFIGURE: Where to install PBMPLUS (defaults to the X11 directories). */
- #ifndef PbmplusDir
- #define PbmplusDir /* defaults to nothing */
- #endif
- #ifndef PbmplusBinDir
- #define PbmplusBinDir $(BINDIR)
- #endif
- #ifndef PbmplusManDir
- #define PbmplusManDir $(MANDIR)
- #endif
- #ifndef PbmplusLibDir
- #define PbmplusLibDir $(USRLIBDIR)
- #endif
- #ifndef PbmplusIncDir
- #define PbmplusIncDir $(INCDIR)
- #endif
- X
- /* End of configurable definitions. */
- X
- /* Subdirectories: */
- #ifndef PbmDir
- #define PbmDir TOPDIR/pbm
- #endif
- #ifndef PgmDir
- #define PgmDir TOPDIR/pgm
- #endif
- #ifndef PpmDir
- #define PpmDir TOPDIR/ppm
- #endif
- #ifndef PnmDir
- #define PnmDir TOPDIR/pnm
- #endif
- #ifndef TiffDir
- #define TiffDir TOPDIR/libtiff
- #endif
- X
- /* Libraries: */
- #ifndef LibPbm
- #define LibPbm $(PBMDIR)/libpbm.a
- #endif
- #ifndef LibPgm
- #define LibPgm $(PGMDIR)/libpgm.a
- #endif
- #ifndef LibPpm
- #define LibPpm $(PPMDIR)/libppm.a
- #endif
- #ifndef LibPnm
- #define LibPnm $(PNMDIR)/libpnm.a
- #endif
- #ifndef LibTiff
- #define LibTiff $(TIFFDIR)/libtiff.a
- #endif
- X
- /* Dependency libraries: */
- #ifndef DepLibPbm
- #define DepLibPbm LibPbm
- #endif
- #ifndef DepLibPgm
- #define DepLibPgm LibPgm
- #endif
- #ifndef DepLibPpm
- #define DepLibPpm LibPpm
- #endif
- #ifndef DepLibPnm
- #define DepLibPnm LibPnm
- #endif
- #ifndef DepLibTiff
- #define DepLibTiff LibTiff
- #endif
- X
- X PBMPLUSDIR = PbmplusDir
- PBMPLUSBINDIR = PbmplusBinDir
- PBMPLUSMANDIR = PbmplusManDir
- PBMPLUSLIBDIR = PbmplusLibDir
- PBMPLUSINCDIR = PbmplusIncDir
- X
- X PBMDIR = PbmDir
- X PGMDIR = PgmDir
- X PPMDIR = PpmDir
- X PNMDIR = PnmDir
- X TIFFDIR = TiffDir
- X
- X LIBPBM = LibPbm
- X LIBPGM = LibPgm
- X LIBPPM = LibPpm
- X LIBPNM = LibPnm
- X LIBTIFF = LibTiff
- X DEPLIBPBM = DepLibPbm
- X DEPLIBPGM = DepLibPgm
- X DEPLIBPPM = DepLibPpm
- X DEPLIBPNM = DepLibPnm
- X DEPLIBTIFF = DepLibTiff
- X
- #if InstallMerged
- X
- #ifndef InstallPbmplusPrograms
- #define InstallPbmplusPrograms(list,dest,flags) @@\
- install:: list @@\
- X MakeDir($(DESTDIR)dest) @@\
- X @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
- X for i in list; do \ @@\
- X (set -x; cd $(DESTDIR)dest; $(RM) $$i; \ @@\
- X $(LN) $(MERGE) $$i); \ @@\
- X done
- #endif /* InstallPbmplusPrograms */
- X
- #ifndef NormalPbmplusProgramTarget
- #define NormalPbmplusProgramTarget(program) @@\
- program.o: program.c @@\
- X ObjectCompile("-Dmain=$*_main") @@\
- X LinkFile(program,$(MERGE))
- #endif /* NormalPbmplusProgramTarget */
- X
- #ifndef NormalPbmplusMathProgramTarget
- #define NormalPbmplusMathProgramTarget(program) \ @@\
- NormalPbmplusProgramTarget(program)
- #endif /* NormalPbmplusMathProgramTarget */
- X
- #else
- X
- #ifndef NormalPbmplusProgramTarget
- #define NormalPbmplusProgramTarget(program) \ @@\
- NormalProgramTarget(program,program.o,$(CURRENTDEPLIBS),$(CURRENTLIBS),)
- #endif /* NormalPbmplusProgramTarget */
- X
- #ifndef NormalPbmplusMathProgramTarget
- #define NormalPbmplusMathProgramTarget(program) @@\
- NormalProgramTarget(program,program.o,$(CURRENTDEPLIBS),$(CURRENTLIBS),-lm)
- #endif /* NormalPbmplusMathProgramTarget */
- X
- #ifndef InstallPbmplusPrograms
- #define InstallPbmplusPrograms(list,dest,flags) @@\
- install:: list @@\
- X MakeDir($(DESTDIR)dest) @@\
- X @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
- X for i in list; do \ @@\
- X (set -x; $(RM) $(DESTDIR)dest/$$i; \ @@\
- X $(INSTALL) -c flags $$i $(DESTDIR)dest); \ @@\
- X done
- #endif /* InstallPbmplusPrograms */
- X
- #endif /* InstallMerged */
- SHAR_EOF
- chmod 0664 Pbmplus.tmpl ||
- echo 'restore of Pbmplus.tmpl failed'
- Wc_c="`wc -c < 'Pbmplus.tmpl'`"
- test 6893 -eq "$Wc_c" ||
- echo 'Pbmplus.tmpl: original size 6893, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- # ============= p121091.diffs ==============
- if test -f 'p121091.diffs' -a X"$1" != X"-c"; then
- echo 'x - skipping p121091.diffs (File already exists)'
- rm -f _shar_wnt_.tmp
- else
- > _shar_wnt_.tmp
- echo 'x - extracting p121091.diffs (Text)'
- sed 's/^X//' << 'SHAR_EOF' > 'p121091.diffs' &&
- diff -cr pbmplus30oct91/CHANGES CHANGES
- *** pbmplus30oct91/CHANGES Wed Oct 30 13:03:49 1991
- --- CHANGES Tue Dec 10 16:53:20 1991
- ***************
- *** 1,3 ****
- --- 1,21 ----
- + Changes since the 30oct91 patch version:
- +
- + Fixed uninitialized variable in ppmtotga. (John Walker)
- + Added pgmcrater, ppmforge, ppmtoacad, sldtoppm. (John Walker)
- + Slight change to the p?mmerge.c front-ends to allow for main programs
- + that return instead of exitting.
- + Minor clarifications to the pnmconvol man page.
- + Fixed xwdtopnm to read some 16-bit True/Direct files. (David Elliott)
- + Fixed uninitialized variables in pnmtotiff. (Larry Rosenstein, Bayles Holt)
- + Added a couple of checks for \r while reading whitespace. (Larry Rosenstein)
- + Removed all the BROKENPUTC stuff. Now we ignore all return values from
- + putc(), and check ferror() in pm_close(). Added pm_close() calls to
- + many of the filters.
- + Fixed pnmdepth to check for too-large newmaxvals. Improved rounding
- + in pnmdepth and PPM_DEPTH macro. (Tom Lane)
- + Minor fix to ppmtouil. (Mohsen Banan)
- + Added new Imakefiles. (Rainer Klute)
- +
- X Changes since the 05oct91 X11R5 contrib tape version:
- X
- X Fixed minor SysV config error in pbmplus.h. (Tom Lane)
- diff -cr pbmplus30oct91/FORMATS FORMATS
- *** pbmplus30oct91/FORMATS Fri Sep 27 01:43:23 1991
- --- FORMATS Tue Dec 10 16:53:22 1991
- ***************
- *** 51,56 ****
- --- 51,58 ----
- X X11 "puzzle" file writing
- X Motif UIL icon file writing
- X DEC sixel format writing
- + AutoCAD slide format reading writing
- + AutoCAD DXB format writing
- X
- X PNM handles the following multi-type formats:
- X
- diff -cr pbmplus30oct91/Makefile Makefile
- *** pbmplus30oct91/Makefile Wed Oct 30 20:13:49 1991
- --- Makefile Tue Dec 10 16:53:27 1991
- ***************
- *** 50,55 ****
- --- 50,58 ----
- X # Libtiff is pretty good about portability, but there are some machines
- X # it has problems on. If you run into problems, you may wish to contact
- X # Sam directly, at the address listed in the OTHER.SYSTEMS file.
- + #
- + # By the way, you must have at least version 2.4 of libtiff. Earlier
- + # versions will not work.
- X TIFFDEF = -DLIBTIFF
- X TIFFINC = -I../libtiff
- X TIFFLIB = ../libtiff/libtiff.a
- diff -cr pbmplus30oct91/OTHER.SYSTEMS OTHER.SYSTEMS
- *** pbmplus30oct91/OTHER.SYSTEMS Wed Sep 18 20:03:52 1991
- --- OTHER.SYSTEMS Tue Dec 10 16:53:22 1991
- ***************
- *** 62,67 ****
- --- 62,77 ----
- X signal processing routines, and 2D/3D plotting packages. Available via
- X FTP as pprg.unm.edu:pub/khoros/*.
- X
- + LaboImage, a SunView-based image processing and analysis package. It
- + includes more than 200 image manipulation, processing and measurement
- + routines, on-line help, plus tools such as an image editor, a color
- + table editor and several biomedical utilities. Available via anonymous
- + FTP as ads.com:pub/VISION-LIST-ARCHIVE/SHAREWARE/LaboImage_3.1.tar.Z
- +
- + The San Diego Supercomputer Center Image Tools, software tools for
- + reading, writing, and manipulating raster images. Binaries for some
- + machines available via anonymous FTP in sdsc.edu:sdscpub.
- +
- X Don't forget to set binary mode when you FTP tar files. For you MILNET
- X folks who still don't have name servers, the IP addresses are:
- X
- ***************
- *** 74,79 ****
- --- 84,91 ----
- X weedeater.math.yale.edu 130.132.23.17
- X freebie.engin.umich.edu 141.212.68.23
- X pprg.eece.unm.edu 129.24.24.10
- + ads.com 128.229.30.16
- + sdsc.edu 132.249.20.22
- X
- X Also, the newsgroup alt.graphics.pixutils is specifically for discussion
- X of software like this. You may find useful information there.
- diff -cr pbmplus30oct91/README README
- *** pbmplus30oct91/README Wed Oct 30 20:11:16 1991
- --- README Tue Dec 10 16:53:18 1991
- ***************
- *** 1,6 ****
- X Extended Portable Bitmap Toolkit
- ! Distribution of 30oct91
- ! Previous distribution 05oct91
- X
- X
- X PBMPLUS is a toolkit for converting various image formats to and from
- --- 1,6 ----
- X Extended Portable Bitmap Toolkit
- ! Distribution of 10dec91
- ! Previous distribution 30oct91
- X
- X
- X PBMPLUS is a toolkit for converting various image formats to and from
- ***************
- *** 40,49 ****
- X Make.
- X When you're happy that things compiled ok, make install.
- X
- ! The Imakefiles are pretty minimal, but if you want to use them anyway:
- X
- ! Edit pbmplus.h, find each line with the string "CONFIGURE", and
- ! follow the directions for setting configuration options.
- X Save the original Makefiles, in case you later want to switch back
- X to using them.
- X The usual X11 sequence of xmkmf, make Makefiles, make depend, then
- --- 40,50 ----
- X Make.
- X When you're happy that things compiled ok, make install.
- X
- ! If you want to use Imakefiles:
- X
- ! Edit Pbmplus.tmpl, find each line with the string "CONFIGURE",
- ! and follow the directions for setting configuration options.
- ! Likewise edit pbmplus.h.
- X Save the original Makefiles, in case you later want to switch back
- X to using them.
- X The usual X11 sequence of xmkmf, make Makefiles, make depend, then
- ***************
- *** 65,71 ****
- X enhancements, etc. to this address:
- X
- X jef@well.sf.ca.us
- ! {apple, ucbvax}!well!jef
- X
- X When sending bug reports, always include the output from running any
- X PBMPLUS program with the -version flag. Also include the type of
- --- 66,72 ----
- X enhancements, etc. to this address:
- X
- X jef@well.sf.ca.us
- ! apple!well!jef
- X
- X When sending bug reports, always include the output from running any
- X PBMPLUS program with the -version flag. Also include the type of
- ***************
- *** 135,140 ****
- --- 136,143 ----
- X OTHER.SYSTEMS list of other free image-processing software
- X Makefile guess
- X Imakefile for X11-type installations
- + Imakefile.tiff for X11-type installations
- + Pbmplus.tmpl for X11-type installations
- X pbmplus.h header file for PBM, PGM, PPM, and PNM
- X
- X compat.csh csh script for compatibility with old versions
- ***************
- *** 216,221 ****
- --- 219,225 ----
- X pgmtopbm.c convert portable graymap to portable bitmap
- X
- X pgmbentley.c Bentleyize a portable graymap
- + pgmcrater.c create cratered terrain by fractal forgery
- X pgmedge.c edge-detect a portable graymap
- X pgmenhance.c edge-enhance a portable graymap
- X pgmhist.c print a histogram of the values in a portable graymap
- ***************
- *** 251,256 ****
- --- 255,261 ----
- X qrttoppm.c convert QRT ray-tracer output to portable pixmap
- X rawtoppm.c convert raw RGB bytes to portable pixmap
- X rgb3toppm.c combine three portable graymaps into one portable pixmap
- + sldtoppm.c convert an AutoCAD slide file into a portable pixmap
- X spctoppm.c convert Atari compressed Spectrum to portable pixmap
- X sputoppm.c convert Atari uncompressed Spectrum to portable pixmap
- X tgatoppm.c convert TrueVision Targa file to portable pixmap
- ***************
- *** 258,263 ****
- --- 263,269 ----
- X xpmtoppm.c convert XPM format to portable pixmap
- X yuvtoppm.c convert Abekas YUV format to portable pixmap
- X
- + ppmtoacad.c convert portable pixmap to AutoCAD database or slide
- X ppmtogif.c convert portable pixmap to GIF
- X ppmtoicr.c convert portable pixmap to NCSA ICR graphics
- X ppmtoilbm.c convert portable pixmap to IFF ILBM
- ***************
- *** 275,281 ****
- --- 281,289 ----
- X ppmtoyuv.c convert portable pixmap to Abekas YUV format
- X
- X ppmdither.c ordered dither for color images
- + ppmforge.c fractal forgeries of clouds, planets, and starry skies
- X ppmhist.c print a histogram of a portable pixmap
- + ppmmake.c create a pixmap of a specified size and color
- X ppmpat.c create a pretty pixmap
- X ppmquant.c quantize colors down to a specified number
- X ppmquantall script to run ppmquant on a set of pixmaps
- ***************
- *** 287,292 ****
- --- 295,301 ----
- X ppmcmap.h header file for colormap routines in libppm
- X ppmdraw.h header file for simple drawing routines in libppm
- X libppm.h internal header file for libppm
- + autocad.h definitions for AutoCAD files
- X tga.h definitions for TrueVision Targa files
- X xim.h definitions for Xim files
- X *.1 manual entries for all of the tools
- diff -cr pbmplus30oct91/pbmplus.h pbmplus.h
- *** pbmplus30oct91/pbmplus.h Sun Oct 6 09:32:33 1991
- --- pbmplus.h Tue Dec 10 16:53:28 1991
- ***************
- *** 17,27 ****
- X #include <ctype.h>
- X #include <stdio.h>
- X
- ! #if ! ( defined(BSD) || defined(SYSV) || defined(MSDOS))
- X /* CONFIGURE: If your system is >= 4.2BSD, set the BSD option; if you're a
- X ** System V site, set the SYSV option; and if you're IBM-compatible, set
- X ** MSDOS. If your compiler is ANSI C, you're probably better off setting
- ! ** SYSV.
- X */
- X #define BSD
- X /* #define SYSV */
- --- 17,30 ----
- X #include <ctype.h>
- X #include <stdio.h>
- X
- ! #if defined(USG) || defined(SVR4)
- ! #define SYSV
- ! #endif
- ! #if ! ( defined(BSD) || defined(SYSV) || defined(MSDOS) )
- X /* CONFIGURE: If your system is >= 4.2BSD, set the BSD option; if you're a
- X ** System V site, set the SYSV option; and if you're IBM-compatible, set
- X ** MSDOS. If your compiler is ANSI C, you're probably better off setting
- ! ** SYSV - all it affects is string handling.
- X */
- X #define BSD
- X /* #define SYSV */
- ***************
- *** 36,62 ****
- X ** Note that reading "raw" files works whether writing is enabled or not.
- X */
- X #define PBMPLUS_RAWBITS
- -
- - /* CONFIGURE: On some systems, the putc() macro is broken and will return
- - ** EOF when you write out a 255. For example, ULTRIX does this. This
- - ** only matters if you have defined RAWBITS. To test whether your system
- - ** is broken this way, go ahead and compile things with RAWBITS defined,
- - ** and then try "pbmmake -b 8 1 > file". If it works, fine. If not,
- - ** define BROKENPUTC1 and try again - if that works, good. Otherwise,
- - ** BROKENPUTC2 is guaranteed to work, although it's about twice as slow.
- - */
- - /* #define PBMPLUS_BROKENPUTC1 */
- - /* #define PBMPLUS_BROKENPUTC2 */
- -
- - #ifdef PBMPLUS_BROKENPUTC1
- - #undef putc
- - /* This is a fixed version of putc() that should work on most Unix systems. */
- - #define putc(x,p) (--(p)->_cnt>=0? ((int)(unsigned char)(*(p)->_ptr++=(unsigned char)(x))) : _flsbuf((unsigned char)(x),p))
- - #endif /*PBMPLUS_BROKENPUTC1*/
- - #ifdef PBMPLUS_BROKENPUTC2
- - #undef putc
- - /* For this one, putc() becomes a function, defined in pbm/libpbm1.c. */
- - #endif /*PBMPLUS_BROKENPUTC2*/
- X
- X /* CONFIGURE: PGM can store gray values as either bytes or shorts. For most
- X ** applications, bytes will be big enough, and the memory savings can be
- --- 39,44 ----
- diff -cr pbmplus30oct91/version.h version.h
- *** pbmplus30oct91/version.h Wed Oct 30 20:11:25 1991
- --- version.h Tue Dec 10 16:53:28 1991
- ***************
- *** 1,4 ****
- X /* version.h - define the current version of PBM, PGM, PPM, and PNM
- X */
- X
- ! #define PBMPLUS_VERSION "30oct91"
- --- 1,4 ----
- X /* version.h - define the current version of PBM, PGM, PPM, and PNM
- X */
- X
- ! #define PBMPLUS_VERSION "10dec91"
- diff -cr pbmplus30oct91/pbm/Makefile pbm/Makefile
- *** pbmplus30oct91/pbm/Makefile Thu Oct 24 13:34:36 1991
- --- pbm/Makefile Tue Dec 10 16:51:57 1991
- ***************
- *** 42,49 ****
- X pbmtogem pbmtogo pbmtoicon pbmtolj pbmtomacp \
- X pbmtomgr pbmtopi3 pbmtoplot pbmtoptx \
- X pbmtox10bm pbmtoxbm pbmtoybm pbmtozinc \
- ! pbmupc pi3topbm xbmtopbm \
- ! ybmtopbm
- X
- X OBJECTS = atktopbm.o brushtopbm.o cmuwmtopbm.o g3topbm.o \
- X icontopbm.o gemtopbm.o macptopbm.o mgrtopbm.o \
- --- 42,48 ----
- X pbmtogem pbmtogo pbmtoicon pbmtolj pbmtomacp \
- X pbmtomgr pbmtopi3 pbmtoplot pbmtoptx \
- X pbmtox10bm pbmtoxbm pbmtoybm pbmtozinc \
- ! pbmupc pi3topbm xbmtopbm ybmtopbm
- X
- X OBJECTS = atktopbm.o brushtopbm.o cmuwmtopbm.o g3topbm.o \
- X icontopbm.o gemtopbm.o macptopbm.o mgrtopbm.o \
- ***************
- *** 53,60 ****
- X pbmtogem.o pbmtogo.o pbmtoicon.o pbmtolj.o pbmtomacp.o \
- X pbmtomgr.o pbmtopi3.o pbmtoplot.o pbmtoptx.o \
- X pbmtox10bm.o pbmtoxbm.o pbmtoybm.o pbmtozinc.o \
- ! pbmupc.o pi3topbm.o xbmtopbm.o \
- ! ybmtopbm.o
- X
- X MANUALS1 = $(BINARIES)
- X MANUALS3 = libpbm
- --- 52,58 ----
- X pbmtogem.o pbmtogo.o pbmtoicon.o pbmtolj.o pbmtomacp.o \
- X pbmtomgr.o pbmtopi3.o pbmtoplot.o pbmtoptx.o \
- X pbmtox10bm.o pbmtoxbm.o pbmtoybm.o pbmtozinc.o \
- ! pbmupc.o pi3topbm.o xbmtopbm.o ybmtopbm.o
- X
- X MANUALS1 = $(BINARIES)
- X MANUALS3 = libpbm
- diff -cr pbmplus30oct91/pbm/atktopbm.c pbm/atktopbm.c
- *** pbmplus30oct91/pbm/atktopbm.c Thu Sep 26 18:55:48 1991
- --- pbm/atktopbm.c Tue Dec 10 16:53:16 1991
- ***************
- *** 21,27 ****
- X int argc;
- X char *argv[];
- X {
- ! FILE *ifd;
- X register bit *bitrow, *bP;
- X int rows, cols, row, col, charcount;
- X unsigned char *data, mask;
- --- 21,27 ----
- X int argc;
- X char *argv[];
- X {
- ! FILE *ifp;
- X register bit *bitrow, *bP;
- X int rows, cols, row, col, charcount;
- X unsigned char *data, mask;
- ***************
- *** 32,44 ****
- X pm_usage( "[raster obj]" );
- X
- X if ( argc == 2 )
- ! ifd = pm_openr( argv[1] );
- X else
- ! ifd = stdin;
- X
- ! ReadATKRaster( ifd, &cols, &rows, &data );
- X
- ! pm_close( ifd );
- X
- X pbm_writepbminit( stdout, cols, rows, 0 );
- X bitrow = pbm_allocrow( cols );
- --- 32,44 ----
- X pm_usage( "[raster obj]" );
- X
- X if ( argc == 2 )
- ! ifp = pm_openr( argv[1] );
- X else
- ! ifp = stdin;
- X
- ! ReadATKRaster( ifp, &cols, &rows, &data );
- X
- ! pm_close( ifp );
- X
- X pbm_writepbminit( stdout, cols, rows, 0 );
- X bitrow = pbm_allocrow( cols );
- ***************
- *** 63,68 ****
- --- 63,69 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pbm/brushtopbm.c pbm/brushtopbm.c
- *** pbmplus30oct91/pbm/brushtopbm.c Fri Jun 28 14:28:18 1991
- --- pbm/brushtopbm.c Tue Dec 10 16:52:20 1991
- ***************
- *** 56,61 ****
- --- 56,62 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/cmuwmtopbm.c pbm/cmuwmtopbm.c
- *** pbmplus30oct91/pbm/cmuwmtopbm.c Fri Jun 28 14:42:04 1991
- --- pbm/cmuwmtopbm.c Tue Dec 10 16:52:36 1991
- ***************
- *** 58,63 ****
- --- 58,64 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/g3topbm.c pbm/g3topbm.c
- *** pbmplus30oct91/pbm/g3topbm.c Fri Jun 28 14:51:31 1991
- --- pbm/g3topbm.c Tue Dec 10 16:52:11 1991
- ***************
- *** 123,128 ****
- --- 123,129 ----
- X pbm_writepbminit( stdout, cols, rows, 0 );
- X for ( row = 0; row < rows; ++row )
- X pbm_writepbmrow( stdout, bits[row], cols, 0 );
- + pm_close( stdout );
- X
- X exit(0);
- X }
- diff -cr pbmplus30oct91/pbm/gemtopbm.c pbm/gemtopbm.c
- *** pbmplus30oct91/pbm/gemtopbm.c Fri Jun 28 14:42:07 1991
- --- pbm/gemtopbm.c Tue Dec 10 16:52:30 1991
- ***************
- *** 209,214 ****
- --- 209,215 ----
- X } while (linerep--);
- X }
- X pm_close( f );
- + pm_close( stdout );
- X exit(0);
- X }
- X
- diff -cr pbmplus30oct91/pbm/icontopbm.c pbm/icontopbm.c
- *** pbmplus30oct91/pbm/icontopbm.c Fri Jun 28 14:28:25 1991
- --- pbm/icontopbm.c Tue Dec 10 16:51:58 1991
- ***************
- *** 62,67 ****
- --- 62,68 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pbm/libpbm1.c pbm/libpbm1.c
- *** pbmplus30oct91/pbm/libpbm1.c Wed Jul 3 13:08:09 1991
- --- pbm/libpbm1.c Tue Dec 10 16:52:45 1991
- ***************
- *** 376,382 ****
- X {
- X if ( *format != '%' )
- X { /* Not special, just write out the char. */
- ! putc( *format, stream );
- X ++n;
- X ++format;
- X }
- --- 376,382 ----
- X {
- X if ( *format != '%' )
- X { /* Not special, just write out the char. */
- ! (void) putc( *format, stream );
- X ++n;
- X ++format;
- X }
- ***************
- *** 467,473 ****
- X break;
- X
- X case '%':
- ! putc( '%', stream );
- X ++n;
- X break;
- X
- --- 467,473 ----
- X break;
- X
- X case '%':
- ! (void) putc( '%', stream );
- X ++n;
- X break;
- X
- ***************
- *** 533,555 ****
- X pm_close( f )
- X FILE* f;
- X {
- X if ( f != stdin )
- X if ( fclose( f ) != 0 )
- X pm_perror( "fclose" );
- X }
- X
- - /* Broken putc() fix. */
- -
- - #ifdef PBMPLUS_BROKENPUTC2
- - int
- - putc( c, stream )
- - char c;
- - FILE* stream;
- - {
- - return fwrite( &c, 1, 1, stream ) == 1 ? c : EOF;
- - }
- - #endif /*PBMPLUS_BROKENPUTC2*/
- -
- X /* Endian I/O.
- X */
- X
- --- 533,546 ----
- X pm_close( f )
- X FILE* f;
- X {
- + fflush( f );
- + if ( ferror( f ) )
- + pm_message( "a file read or write error occurred at some point" );
- X if ( f != stdin )
- X if ( fclose( f ) != 0 )
- X pm_perror( "fclose" );
- X }
- X
- X /* Endian I/O.
- X */
- X
- ***************
- *** 579,588 ****
- X short s;
- X #endif /*__STDC__*/
- X {
- ! if ( putc( ( s >> 8 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( s & 0xff, out ) == EOF )
- ! return -1;
- X return 0;
- X }
- X
- --- 570,577 ----
- X short s;
- X #endif /*__STDC__*/
- X {
- ! (void) putc( ( s >> 8 ) & 0xff, out );
- ! (void) putc( s & 0xff, out );
- X return 0;
- X }
- X
- ***************
- *** 613,626 ****
- X FILE* out;
- X long l;
- X {
- ! if ( putc( ( l >> 24 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( l >> 16 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( l >> 8 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( l & 0xff, out ) == EOF )
- ! return -1;
- X return 0;
- X }
- X
- --- 602,611 ----
- X FILE* out;
- X long l;
- X {
- ! (void) putc( ( l >> 24 ) & 0xff, out );
- ! (void) putc( ( l >> 16 ) & 0xff, out );
- ! (void) putc( ( l >> 8 ) & 0xff, out );
- ! (void) putc( l & 0xff, out );
- X return 0;
- X }
- X
- ***************
- *** 650,659 ****
- X short s;
- X #endif /*__STDC__*/
- X {
- ! if ( putc( s & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( s >> 8 ) & 0xff, out ) == EOF )
- ! return -1;
- X return 0;
- X }
- X
- --- 635,642 ----
- X short s;
- X #endif /*__STDC__*/
- X {
- ! (void) putc( s & 0xff, out );
- ! (void) putc( ( s >> 8 ) & 0xff, out );
- X return 0;
- X }
- X
- ***************
- *** 684,696 ****
- X FILE* out;
- X long l;
- X {
- ! if ( putc( l & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( l >> 8 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( l >> 16 ) & 0xff, out ) == EOF )
- ! return -1;
- ! if ( putc( ( l >> 24 ) & 0xff, out ) == EOF )
- ! return -1;
- X return 0;
- X }
- --- 667,675 ----
- X FILE* out;
- X long l;
- X {
- ! (void) putc( l & 0xff, out );
- ! (void) putc( ( l >> 8 ) & 0xff, out );
- ! (void) putc( ( l >> 16 ) & 0xff, out );
- ! (void) putc( ( l >> 24 ) & 0xff, out );
- X return 0;
- X }
- diff -cr pbmplus30oct91/pbm/libpbm3.c pbm/libpbm3.c
- *** pbmplus30oct91/pbm/libpbm3.c Fri Jun 28 14:28:29 1991
- --- pbm/libpbm3.c Tue Dec 10 16:52:47 1991
- ***************
- *** 49,63 ****
- X --bitshift;
- X if ( bitshift == -1 )
- X {
- ! if ( putc( item, file ) == EOF )
- ! pm_error( "write error" );
- X bitshift = 7;
- X item = 0;
- X }
- X }
- X if ( bitshift != 7 )
- ! if ( putc( item, file ) == EOF )
- ! pm_error( "write error" );
- X }
- X #endif /*PBMPLUS_RAWBITS*/
- X
- --- 49,61 ----
- X --bitshift;
- X if ( bitshift == -1 )
- X {
- ! (void) putc( item, file );
- X bitshift = 7;
- X item = 0;
- X }
- X }
- X if ( bitshift != 7 )
- ! (void) putc( item, file );
- X }
- X #endif /*PBMPLUS_RAWBITS*/
- X
- ***************
- *** 75,90 ****
- X {
- X if ( charcount >= 70 )
- X {
- ! if ( putc( '\n', file ) == EOF )
- ! pm_error( "write error" );
- X charcount = 0;
- X }
- ! if ( putc( *bP ? '1' : '0', file ) == EOF )
- ! pm_error( "write error" );
- X ++charcount;
- X }
- ! if ( putc( '\n', file ) == EOF )
- ! pm_error( "write error" );
- X }
- X
- X void
- --- 73,85 ----
- X {
- X if ( charcount >= 70 )
- X {
- ! (void) putc( '\n', file );
- X charcount = 0;
- X }
- ! (void) putc( *bP ? '1' : '0', file );
- X ++charcount;
- X }
- ! (void) putc( '\n', file );
- X }
- X
- X void
- diff -cr pbmplus30oct91/pbm/libpbm4.c pbm/libpbm4.c
- *** pbmplus30oct91/pbm/libpbm4.c Fri Jun 28 14:28:31 1991
- --- pbm/libpbm4.c Tue Dec 10 16:52:47 1991
- ***************
- *** 34,40 ****
- X pm_error( "EOF / read error" );
- X ch = (char) ich;
- X }
- ! while ( ch != '\n' );
- X }
- X
- X return ch;
- --- 34,40 ----
- X pm_error( "EOF / read error" );
- X ch = (char) ich;
- X }
- ! while ( ch != '\n' && ch != '\r' );
- X }
- X
- X return ch;
- ***************
- *** 63,69 ****
- X {
- X ch = pbm_getc( file );
- X }
- ! while ( ch == ' ' || ch == '\t' || ch == '\n' );
- X
- X if ( ch < '0' || ch > '9' )
- X pm_error( "junk in file where an integer should be" );
- --- 63,69 ----
- X {
- X ch = pbm_getc( file );
- X }
- ! while ( ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' );
- X
- X if ( ch < '0' || ch > '9' )
- X pm_error( "junk in file where an integer should be" );
- diff -cr pbmplus30oct91/pbm/macptopbm.c pbm/macptopbm.c
- *** pbmplus30oct91/pbm/macptopbm.c Fri Jun 28 14:28:33 1991
- --- pbm/macptopbm.c Tue Dec 10 16:52:00 1991
- ***************
- *** 74,79 ****
- --- 74,80 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pbm/mgrtopbm.c pbm/mgrtopbm.c
- *** pbmplus30oct91/pbm/mgrtopbm.c Fri Jun 28 14:42:09 1991
- --- pbm/mgrtopbm.c Tue Dec 10 16:52:22 1991
- ***************
- *** 55,60 ****
- --- 55,61 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pbmlife.c pbm/pbmlife.c
- *** pbmplus30oct91/pbm/pbmlife.c Fri Jun 28 14:28:35 1991
- --- pbm/pbmlife.c Tue Dec 10 16:52:34 1991
- ***************
- *** 107,112 ****
- --- 107,113 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pbmmake.c pbm/pbmmake.c
- *** pbmplus30oct91/pbm/pbmmake.c Fri Jun 28 14:28:36 1991
- --- pbm/pbmmake.c Tue Dec 10 16:52:13 1991
- ***************
- *** 79,83 ****
- --- 79,84 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pbmmask.c pbm/pbmmask.c
- *** pbmplus30oct91/pbm/pbmmask.c Fri Jun 28 14:28:37 1991
- --- pbm/pbmmask.c Tue Dec 10 16:53:07 1991
- ***************
- *** 133,138 ****
- --- 133,139 ----
- X pbm_writepbm( stdout, emask, cols, rows, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pbm/pbmmerge.c pbm/pbmmerge.c
- *** pbmplus30oct91/pbm/pbmmerge.c Thu Sep 26 18:38:29 1991
- --- pbm/pbmmerge.c Tue Dec 10 16:52:54 1991
- ***************
- *** 32,38 ****
- X goto again;
- X }
- X
- ! #define TRY(s,m) { if ( strcmp( cp, s ) == 0 ) m( argc, argv ); }
- X
- X TRY( "atktopbm", atktopbm_main );
- X TRY( "brushtopbm", brushtopbm_main );
- --- 32,38 ----
- X goto again;
- X }
- X
- ! #define TRY(s,m) { if ( strcmp( cp, s ) == 0 ) exit( m( argc, argv ) ); }
- X
- X TRY( "atktopbm", atktopbm_main );
- X TRY( "brushtopbm", brushtopbm_main );
- diff -cr pbmplus30oct91/pbm/pbmreduce.c pbm/pbmreduce.c
- *** pbmplus30oct91/pbm/pbmreduce.c Sun Jul 7 17:29:03 1991
- --- pbm/pbmreduce.c Tue Dec 10 16:52:28 1991
- ***************
- *** 193,198 ****
- --- 193,199 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pbmtext.c pbm/pbmtext.c
- *** pbmplus30oct91/pbm/pbmtext.c Fri Jun 28 14:28:43 1991
- --- pbm/pbmtext.c Tue Dec 10 16:52:39 1991
- ***************
- *** 152,157 ****
- --- 152,158 ----
- X
- X /* All done. */
- X pbm_writepbm( stdout, bits, cols, rows, 0 );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pbmtocmuwm.c pbm/pbmtocmuwm.c
- *** pbmplus30oct91/pbm/pbmtocmuwm.c Fri Jun 28 14:28:47 1991
- --- pbm/pbmtocmuwm.c Tue Dec 10 16:52:37 1991
- ***************
- *** 109,116 ****
- X static void
- X putitem( )
- X {
- ! if ( putc( item, stdout ) == EOF )
- ! pm_error( "write error" );
- X item = 0;
- X bitsperitem = 0;
- X bitshift = 7;
- --- 109,115 ----
- X static void
- X putitem( )
- X {
- ! (void) putc( item, stdout );
- X item = 0;
- X bitsperitem = 0;
- X bitshift = 7;
- diff -cr pbmplus30oct91/pbm/pbmtogem.c pbm/pbmtogem.c
- *** pbmplus30oct91/pbm/pbmtogem.c Fri Jun 28 14:28:51 1991
- --- pbm/pbmtogem.c Tue Dec 10 16:53:00 1991
- ***************
- *** 155,162 ****
- X static void
- X putrow( )
- X {
- ! putc(0x80, stdout); /* a Bit string */
- ! putc(outcol*2, stdout); /* count */
- X fwrite( outrow, outcol*2, 1, stdout );
- X outcol = 0;
- X }
- --- 155,162 ----
- X static void
- X putrow( )
- X {
- ! (void) putc(0x80, stdout); /* a Bit string */
- ! (void) putc(outcol*2, stdout); /* count */
- X fwrite( outrow, outcol*2, 1, stdout );
- X outcol = 0;
- X }
- diff -cr pbmplus30oct91/pbm/pbmtomacp.c pbm/pbmtomacp.c
- *** pbmplus30oct91/pbm/pbmtomacp.c Fri Jun 28 14:28:57 1991
- --- pbm/pbmtomacp.c Tue Dec 10 16:52:16 1991
- ***************
- *** 280,286 ****
- X
- X b = pb;
- X while( npb-- )
- ! putc( *b++, fdout );
- X } /* sendbytes */
- X
- X /* - - - - - - - - - - - - - - - - - - - - - - - - - - */
- --- 280,286 ----
- X
- X b = pb;
- X while( npb-- )
- ! (void) putc( *b++, fdout );
- X } /* sendbytes */
- X
- X /* - - - - - - - - - - - - - - - - - - - - - - - - - - */
- ***************
- *** 293,297 ****
- X /* header contains nothing ... */
- X ch = '\0';
- X for(i = 0; i < HEADER_LENGTH; i++ )
- ! putc( ch, fdout );
- X } /* header */
- --- 293,297 ----
- X /* header contains nothing ... */
- X ch = '\0';
- X for(i = 0; i < HEADER_LENGTH; i++ )
- ! (void) putc( ch, fdout );
- X } /* header */
- diff -cr pbmplus30oct91/pbm/pbmupc.c pbm/pbmupc.c
- *** pbmplus30oct91/pbm/pbmupc.c Fri Jun 28 14:39:31 1991
- --- pbm/pbmupc.c Tue Dec 10 16:52:43 1991
- ***************
- *** 141,146 ****
- --- 141,147 ----
- X putdigit( sum, bits, digrow, col + LINE1_WIDTH );
- X
- X pbm_writepbm( stdout, bits, cols, rows, 0 );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pbm/pi3topbm.c pbm/pi3topbm.c
- *** pbmplus30oct91/pbm/pi3topbm.c Fri Jun 28 14:29:09 1991
- --- pbm/pi3topbm.c Tue Dec 10 16:53:02 1991
- ***************
- *** 90,94 ****
- --- 90,95 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X pm_close( f );
- + pm_close( stdout );
- X exit(0);
- X }
- diff -cr pbmplus30oct91/pbm/xbmtopbm.c pbm/xbmtopbm.c
- *** pbmplus30oct91/pbm/xbmtopbm.c Fri Jun 28 14:29:10 1991
- --- pbm/xbmtopbm.c Tue Dec 10 16:52:02 1991
- ***************
- *** 63,68 ****
- --- 63,69 ----
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pbm/ybmtopbm.c pbm/ybmtopbm.c
- *** pbmplus30oct91/pbm/ybmtopbm.c Fri Jun 28 14:42:10 1991
- --- pbm/ybmtopbm.c Tue Dec 10 16:52:57 1991
- ***************
- *** 60,65 ****
- --- 60,66 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/Makefile pgm/Makefile
- *** pbmplus30oct91/pgm/Makefile Fri Sep 27 12:33:43 1991
- --- pgm/Makefile Tue Dec 10 16:53:33 1991
- ***************
- *** 41,53 ****
- X pgmenhance pgmhist pgmnorm pgmoil pgmramp \
- X pgmtofits pgmtofs pgmtolispm pgmtopbm \
- X psidtopgm rawtopgm
- ! MATHBINARIES = pgmedge pgmtexture
- X BINARIES = $(PORTBINARIES) $(MATHBINARIES)
- X
- X OBJECTS = fitstopgm.o fstopgm.o hipstopgm.o lispmtopgm.o pgmbentley.o \
- X pgmenhance.o pgmhist.o pgmnorm.o pgmoil.o pgmramp.o \
- X pgmtofits.o pgmtofs.o pgmtolispm.o pgmtopbm.o \
- ! psidtopgm.o rawtopgm.o pgmedge.o pgmtexture.o
- X
- X MANUALS1 = $(BINARIES)
- X MANUALS3 = libpgm
- --- 41,53 ----
- X pgmenhance pgmhist pgmnorm pgmoil pgmramp \
- X pgmtofits pgmtofs pgmtolispm pgmtopbm \
- X psidtopgm rawtopgm
- ! MATHBINARIES = pgmcrater pgmedge pgmtexture
- X BINARIES = $(PORTBINARIES) $(MATHBINARIES)
- X
- X OBJECTS = fitstopgm.o fstopgm.o hipstopgm.o lispmtopgm.o pgmbentley.o \
- X pgmenhance.o pgmhist.o pgmnorm.o pgmoil.o pgmramp.o \
- X pgmtofits.o pgmtofs.o pgmtolispm.o pgmtopbm.o \
- ! psidtopgm.o rawtopgm.o pgmcrater.o pgmedge.o pgmtexture.o
- X
- X MANUALS1 = $(BINARIES)
- X MANUALS3 = libpgm
- ***************
- *** 126,131 ****
- --- 126,132 ----
- X hipstopgm hipstopgm.o: hipstopgm.c
- X lispmtopgm lispmtopgm.o: lispmtopgm.c
- X pgmbentley pgmbentley.o: pgmbentley.c
- + pgmcrater pgmcrater.o: pgmcrater.c
- X pgmedge pgmedge.o: pgmedge.c
- X pgmenhance pgmenhance.o: pgmenhance.c
- X pgmhist pgmhist.o: pgmhist.c
- diff -cr pbmplus30oct91/pgm/fitstopgm.c pgm/fitstopgm.c
- *** pbmplus30oct91/pgm/fitstopgm.c Wed Sep 25 22:47:36 1991
- --- pgm/fitstopgm.c Tue Dec 10 16:53:53 1991
- ***************
- *** 186,191 ****
- --- 186,192 ----
- X }
- X }
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/fstopgm.c pgm/fstopgm.c
- *** pbmplus30oct91/pgm/fstopgm.c Sat Jul 6 10:24:32 1991
- --- pgm/fstopgm.c Tue Dec 10 16:53:39 1991
- ***************
- *** 105,110 ****
- --- 105,111 ----
- X
- X /* And write out the graymap. */
- X pgm_writepgm( stdout, grays, cols, rows, (gray) maxval, 0 );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/hipstopgm.c pgm/hipstopgm.c
- *** pbmplus30oct91/pgm/hipstopgm.c Fri Jun 28 15:10:53 1991
- --- pgm/hipstopgm.c Tue Dec 10 16:53:41 1991
- ***************
- *** 115,120 ****
- --- 115,121 ----
- X pgm_writepgmrow( stdout, grayrow, cols, (gray) maxval, 0 );
- X }
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/libpgm2.c pgm/libpgm2.c
- *** pbmplus30oct91/pgm/libpgm2.c Fri Jun 28 14:29:17 1991
- --- pgm/libpgm2.c Tue Dec 10 16:53:37 1991
- ***************
- *** 41,55 ****
- X #endif /*PBMPLUS_RAWBITS*/
- X }
- X
- ! static int
- X putus( n, file )
- X unsigned short n;
- X FILE* file;
- X {
- X if ( n >= 10 )
- ! if ( putus( n / 10, file ) == EOF )
- ! return EOF;
- ! return putc( n % 10 + '0', file );
- X }
- X
- X #ifdef PBMPLUS_RAWBITS
- --- 41,54 ----
- X #endif /*PBMPLUS_RAWBITS*/
- X }
- X
- ! static void
- X putus( n, file )
- X unsigned short n;
- X FILE* file;
- X {
- X if ( n >= 10 )
- ! putus( n / 10, file );
- ! (void) putc( n % 10 + '0', file );
- X }
- X
- X #ifdef PBMPLUS_RAWBITS
- ***************
- *** 69,76 ****
- X if ( *gP > maxval )
- X pm_error( "value out of bounds (%u > %u)", *gP, maxval );
- X #endif /*DEBUG*/
- ! if ( putc( *gP, file ) == EOF )
- ! pm_error( "write error" );
- X }
- X }
- X #endif /*PBMPLUS_RAWBITS*/
- --- 68,74 ----
- X if ( *gP > maxval )
- X pm_error( "value out of bounds (%u > %u)", *gP, maxval );
- X #endif /*DEBUG*/
- ! (void) putc( *gP, file );
- X }
- X }
- X #endif /*PBMPLUS_RAWBITS*/
- ***************
- *** 90,103 ****
- X {
- X if ( charcount >= 65 )
- X {
- ! if ( putc( '\n', file ) == EOF )
- ! pm_error( "write error" );
- X charcount = 0;
- X }
- X else if ( charcount > 0 )
- X {
- ! if ( putc( ' ', file ) == EOF )
- ! pm_error( "write error" );
- X ++charcount;
- X }
- X #ifdef DEBUG
- --- 88,99 ----
- X {
- X if ( charcount >= 65 )
- X {
- ! (void) putc( '\n', file );
- X charcount = 0;
- X }
- X else if ( charcount > 0 )
- X {
- ! (void) putc( ' ', file );
- X ++charcount;
- X }
- X #ifdef DEBUG
- ***************
- *** 104,116 ****
- X if ( *gP > maxval )
- X pm_error( "value out of bounds (%u > %u)", *gP, maxval );
- X #endif /*DEBUG*/
- ! if ( putus( (unsigned long) *gP, file ) == EOF )
- ! pm_error( "write error" );
- X charcount += 3;
- X }
- X if ( charcount > 0 )
- ! if ( putc( '\n', file ) == EOF )
- ! pm_error( "write error" );
- X }
- X
- X #if __STDC__
- --- 100,110 ----
- X if ( *gP > maxval )
- X pm_error( "value out of bounds (%u > %u)", *gP, maxval );
- X #endif /*DEBUG*/
- ! putus( (unsigned long) *gP, file );
- X charcount += 3;
- X }
- X if ( charcount > 0 )
- ! (void) putc( '\n', file );
- X }
- X
- X #if __STDC__
- diff -cr pbmplus30oct91/pgm/lispmtopgm.c pgm/lispmtopgm.c
- *** pbmplus30oct91/pgm/lispmtopgm.c Fri Jun 28 15:12:29 1991
- --- pgm/lispmtopgm.c Tue Dec 10 16:53:54 1991
- ***************
- *** 63,68 ****
- --- 63,69 ----
- X pgm_writepgmrow( stdout, grayrow, cols, (gray) maxval, 0 );
- X }
- X pm_close( ifp );
- + pm_close( stdout );
- X exit( 0 );
- X }
- X
- diff -cr pbmplus30oct91/pgm/pgm.5 pgm/pgm.5
- *** pbmplus30oct91/pgm/pgm.5 Thu Sep 26 16:13:49 1991
- --- pgm/pgm.5 Tue Dec 10 16:53:34 1991
- ***************
- *** 1,4 ****
- ! .TH pgm 5 "27 September 1991"
- X .SH NAME
- X pgm - portable graymap file format
- X .SH DESCRIPTION
- --- 1,4 ----
- ! .TH pgm 5 "12 November 1991"
- X .SH NAME
- X pgm - portable graymap file format
- X .SH DESCRIPTION
- ***************
- *** 76,82 ****
- X .SH "SEE ALSO"
- X fitstopgm(1), fstopgm(1), hipstopgm(1), lispmtopgm(1), psidtopgm(1),
- X rawtopgm(1),
- ! pgmbentley(1), pgmedge(1), pgmenhance(1), pgmhist(1), pgmnorm(1),
- X pgmoil(1), pgmramp(1), pgmtexture(1),
- X pgmtofits(1), pgmtofs(1), pgmtolispm(1), pgmtopbm(1),
- X pnm(5), pbm(5), ppm(5)
- --- 76,82 ----
- X .SH "SEE ALSO"
- X fitstopgm(1), fstopgm(1), hipstopgm(1), lispmtopgm(1), psidtopgm(1),
- X rawtopgm(1),
- ! pgmbentley(1), pgmcrater(1), pgmedge(1), pgmenhance(1), pgmhist(1), pgmnorm(1),
- X pgmoil(1), pgmramp(1), pgmtexture(1),
- X pgmtofits(1), pgmtofs(1), pgmtolispm(1), pgmtopbm(1),
- X pnm(5), pbm(5), ppm(5)
- diff -cr pbmplus30oct91/pgm/pgmbentley.c pgm/pgmbentley.c
- *** pbmplus30oct91/pgm/pgmbentley.c Fri Jun 28 14:29:20 1991
- --- pgm/pgmbentley.c Tue Dec 10 16:54:10 1991
- ***************
- *** 56,61 ****
- --- 56,62 ----
- X }
- X
- X pgm_writepgm( stdout, gout, cols, rows, maxval, 0 );
- + pm_close( stdout );
- X pgm_freearray( gout, rows );
- X
- X exit( 0 );
- diff -cr pbmplus30oct91/pgm/pgmedge.c pgm/pgmedge.c
- *** pbmplus30oct91/pgm/pgmedge.c Fri Jun 28 14:29:21 1991
- --- pgm/pgmedge.c Tue Dec 10 16:54:06 1991
- ***************
- *** 101,105 ****
- --- 101,107 ----
- X orow[col] = 0;
- X pgm_writepgmrow( stdout, orow, cols, maxval, 0 );
- X
- + pm_close( stdout );
- +
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/pgmenhance.c pgm/pgmenhance.c
- *** pbmplus30oct91/pgm/pgmenhance.c Fri Jun 28 14:29:23 1991
- --- pgm/pgmenhance.c Tue Dec 10 16:53:43 1991
- ***************
- *** 113,123 ****
- X *ngP = thisrow[cols - 1];
- X pgm_writepgmrow( stdout, newrow, cols, maxval, 0 );
- X }
- X
- X /* Last row. */
- X pgm_writepgmrow( stdout, nextrow, cols, maxval, 0 );
- X
- ! pm_close( ifp );
- X
- X exit( 0 );
- X }
- --- 113,124 ----
- X *ngP = thisrow[cols - 1];
- X pgm_writepgmrow( stdout, newrow, cols, maxval, 0 );
- X }
- + pm_close( ifp );
- X
- X /* Last row. */
- X pgm_writepgmrow( stdout, nextrow, cols, maxval, 0 );
- X
- ! pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/pgmmerge.c pgm/pgmmerge.c
- *** pbmplus30oct91/pgm/pgmmerge.c Thu Sep 26 16:52:44 1991
- --- pgm/pgmmerge.c Tue Dec 10 16:54:05 1991
- ***************
- *** 32,38 ****
- X goto again;
- X }
- X
- ! #define TRY(s,m) { if ( strcmp( cp, s ) == 0 ) m( argc, argv ); }
- X
- X TRY("fitstopgm", fitstopgm_main);
- X TRY("fstopgm", fstopgm_main);
- --- 32,38 ----
- X goto again;
- X }
- X
- ! #define TRY(s,m) { if ( strcmp( cp, s ) == 0 ) exit( m( argc, argv ) ); }
- X
- X TRY("fitstopgm", fitstopgm_main);
- X TRY("fstopgm", fstopgm_main);
- ***************
- *** 39,44 ****
- --- 39,45 ----
- X TRY("hipstopgm", hipstopgm_main);
- X TRY("lispmtopgm", lispmtopgm_main);
- X TRY("pgmbentley", pgmbentley_main);
- + TRY("pgmcrater", pgmcrater_main);
- X TRY("pgmedge", pgmedge_main);
- X TRY("pgmenhance", pgmenhance_main);
- X TRY("pgmhist", pgmhist_main);
- diff -cr pbmplus30oct91/pgm/pgmnorm.c pgm/pgmnorm.c
- *** pbmplus30oct91/pgm/pgmnorm.c Fri Jun 28 15:14:52 1991
- --- pgm/pgmnorm.c Tue Dec 10 16:54:00 1991
- ***************
- *** 177,181 ****
- --- 177,182 ----
- X }
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/pgmoil.c pgm/pgmoil.c
- *** pbmplus30oct91/pgm/pgmoil.c Wed Oct 30 13:04:36 1991
- --- pgm/pgmoil.c Tue Dec 10 16:54:11 1991
- ***************
- *** 89,93 ****
- --- 89,94 ----
- X pgm_writepgmrow( stdout, grayrow, cols, maxval, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/pgmramp.c pgm/pgmramp.c
- *** pbmplus30oct91/pgm/pgmramp.c Sat Oct 5 23:08:10 1991
- --- pgm/pgmramp.c Tue Dec 10 16:54:04 1991
- ***************
- *** 97,101 ****
- --- 97,102 ----
- X pgm_writepgmrow( stdout, grayrow, cols, PGM_MAXMAXVAL, 0 );
- X }
- X
- + pm_close( stdout );
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/pgmtopbm.c pgm/pgmtopbm.c
- *** pbmplus30oct91/pgm/pgmtopbm.c Sun Jul 7 17:29:11 1991
- --- pgm/pgmtopbm.c Tue Dec 10 16:53:48 1991
- ***************
- *** 146,152 ****
- X
- X default:
- X pm_error( "can't happen" );
- - exit( 1 );
- X }
- X
- X for ( row = 0; row < rows; ++row )
- --- 146,151 ----
- ***************
- *** 255,261 ****
- X
- X default:
- X pm_error( "can't happen" );
- - exit( 1 );
- X }
- X
- X pbm_writepbmrow( stdout, bitrow, cols, 0 );
- --- 254,259 ----
- ***************
- *** 262,267 ****
- --- 260,266 ----
- X }
- X
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/psidtopgm.c pgm/psidtopgm.c
- *** pbmplus30oct91/pgm/psidtopgm.c Fri Jun 28 15:17:11 1991
- --- pgm/psidtopgm.c Tue Dec 10 16:53:51 1991
- ***************
- *** 105,110 ****
- --- 105,111 ----
- X pgm_writepgmrow( stdout, grayrow, cols, (gray) maxval, 0 );
- X }
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/pgm/rawtopgm.c pgm/rawtopgm.c
- *** pbmplus30oct91/pgm/rawtopgm.c Fri Jun 28 14:29:38 1991
- --- pgm/rawtopgm.c Tue Dec 10 16:53:46 1991
- ***************
- *** 100,105 ****
- --- 100,106 ----
- X pgm_writepgmrow( stdout, grayrow, cols, (gray) 255, 0 );
- X }
- X pm_close( ifp );
- + pm_close( stdout );
- X
- X exit( 0 );
- X }
- diff -cr pbmplus30oct91/ppm/Makefile ppm/Makefile
- *** pbmplus30oct91/ppm/Makefile Thu Oct 24 13:34:40 1991
- --- ppm/Makefile Tue Dec 10 16:55:21 1991
- ***************
- *** 47,73 ****
- X
- X PORTBINARIES = giftoppm gouldtoppm ilbmtoppm imgtoppm mtvtoppm \
- X pcxtoppm pgmtoppm pi1toppm picttoppm \
- ! pjtoppm ppmdither ppmhist ppmmake ppmquant \
- ! ppmrelief ppmtogif ppmtoicr ppmtoilbm \
- ! ppmtopcx ppmtopgm ppmtopi1 ppmtopict \
- X ppmtopj ppmtopuzz ppmtorgb3 ppmtosixel \
- X ppmtotga ppmtouil ppmtoxpm ppmtoyuv qrttoppm \
- ! rawtoppm rgb3toppm spctoppm sputoppm \
- X tgatoppm ximtoppm xpmtoppm yuvtoppm
- ! MATHBINARIES = ppmpat
- X BINARIES = $(PORTBINARIES) $(MATHBINARIES)
- X SCRIPTS = ppmquantall
- X
- X OBJECTS = giftoppm.o gouldtoppm.o ilbmtoppm.o imgtoppm.o mtvtoppm.o \
- X pcxtoppm.o pgmtoppm.o pi1toppm.o picttoppm.o \
- ! pjtoppm.o ppmdither.o ppmhist.o ppmmake.o ppmquant.o \
- ! ppmrelief.o ppmtogif.o ppmtoicr.o ppmtoilbm.o \
- ! ppmtopcx.o ppmtopgm.o ppmtopi1.o ppmtopict.o \
- X ppmtopj.o ppmtopuzz.o ppmtorgb3.o ppmtosixel.o \
- X ppmtotga.o ppmtouil.o ppmtoxpm.o ppmtoyuv.o qrttoppm.o \
- ! rawtoppm.o rgb3toppm.o spctoppm.o sputoppm.o \
- X tgatoppm.o ximtoppm.o xpmtoppm.o yuvtoppm.o \
- ! ppmpat.o
- X
- X MANUALS1 = $(BINARIES) $(SCRIPTS)
- X MANUALS3 = libppm
- --- 47,73 ----
- X
- X PORTBINARIES = giftoppm gouldtoppm ilbmtoppm imgtoppm mtvtoppm \
- X pcxtoppm pgmtoppm pi1toppm picttoppm \
- ! pjtoppm ppmdither ppmhist ppmmake \
- ! ppmquant ppmrelief ppmtoacad ppmtogif ppmtoicr \
- ! ppmtoilbm ppmtopcx ppmtopgm ppmtopi1 ppmtopict \
- SHAR_EOF
- true || echo 'restore of p121091.diffs failed'
- fi
- echo 'End of part 1'
- echo 'File p121091.diffs is continued in part 2'
- echo 2 > _shar_seq_.tmp
- exit 0
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-